<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_vpn_ssl.php";

$in_array['Name'] = $_GET['number'];

$ssl = new CVPN_SSL_Client();
$ssl -> DelCrtUser($in_array['Name']);
$ssl -> Apply();

$server = new CVPN_SSL_Server();	// reboot openvpn
$server -> Apply();

include_once "function_misc_log.php";
logger("Del", $in_array, "SSL_VPN_Client");

echo("<meta http-equiv='refresh'content=0;URL='vpn_ssl_client_list.php'>");

?>
